package com.example.asthmate;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.widget.TextView;

public class ShowSettingsActivity extends Activity{
	protected void onCreate(Bundle savedInstanceState){
		setContentView(R.layout.settings_activity);
		SharedPreferences sp=PreferenceManager.getDefaultSharedPreferences(this);
		StringBuilder builder=new StringBuilder();
		builder.append("\n" + sp.getBoolean("enable_notifications", false));
		builder.append("\n" + sp.getString("period", "-1"));
		builder.append("\n" + sp.getBoolean("enable_vibrations", false));
		builder.append("\n" + sp.getString("notification_sound", "NULL"));
		TextView settingsTextView = (TextView) findViewById(R.id.settings_text);
		settingsTextView.setText(builder.toString());
	}
}
